package com.hyt.it.ogt.pj.feign.kq;

import com.hyt.core.exception.NestedBusinessException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 报名接口
 * @author 洪滨滨
 * @since 2020/6/12 
 */
@Component
@Slf4j
public class KqClientHystrix implements KqClient {

	@Override
	public String getSubjects(@RequestParam String enrollId, @RequestParam String subjectId) {
        log.error("#获取科目信息失败，进入熔断");
        throw new NestedBusinessException("获取科目信息失败");
	}
	
	@Override
	public String getProjectCollectInfos(@RequestParam String enrollId, @RequestParam String subjectId, @RequestParam String candidateIds, @RequestParam Boolean isAll, @RequestParam String kwFlag) {
        log.error("#获取考生信息列表失败，进入熔断");
        throw new NestedBusinessException("获取考生信息列表失败");
	}
	
	@Override
	public String recordSuccessCandidates(@RequestParam String enrollId, @RequestParam String subjectId, @RequestParam String studentIds) {
        log.error("#记录成功导入的考生失败，进入熔断");
        throw new NestedBusinessException("记录成功导入的考生");
	}
	
	@Override
	public String getBmDetails(@RequestParam String pageJson, @RequestParam String enrollId, @RequestParam String subjectId, @RequestParam String name) {
		log.error("#显示报名明细失败，进入熔断");
        throw new NestedBusinessException("记录成功导入的考生");
	}

	@Override
	public String getBmName(@RequestParam String enrollId) {
		log.error("#查询报名名称失败，进入熔断");
		throw new NestedBusinessException("查询报名名称失败");
	}

	@Override
	public String deleteCandidates(String studentJson) {
		log.error("#修改报名考生状态为未导入失败，进入熔断");
		throw new NestedBusinessException("修改报名考生状态为未导入失败");
	}
	
	@Override
	public String getBmProject(@RequestParam String enrollId) {
		log.error("#获取报名信息失败，进入熔断");
		throw new NestedBusinessException("获取报名信息失败");
	}

	@Override
	public String statByExamId(String examId) {
		log.error("#根据考试id获取报名信息失败，进入熔断");
		throw new NestedBusinessException("根据考试id获取报名信息失败");
	}

}
